package com.easy_helth.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 菜品
 */
@Data
public class Dish implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;


    //菜品名称
    private String name;


    //菜品分类id
    private Integer categoryId;


    //图片
    private String image;


    //0 停止展现 1 允许展现
    private Integer status;


//    点击量
    private Integer focus;

//  卡路里
    private Integer calories;

    //顺序
    private Integer sort;

//    菜谱做法
    private String description;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    //是否删除
    private Integer isDeleted;

}
